import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'base_device_info_method_channel.dart';

abstract class BaseDeviceInfoPlatform extends PlatformInterface {
  /// Constructs a BaseDeviceInfoPlatform.
  BaseDeviceInfoPlatform() : super(token: _token);

  static final Object _token = Object();

  static BaseDeviceInfoPlatform _instance = MethodChannelBaseDeviceInfo();

  /// The default instance of [BaseDeviceInfoPlatform] to use.
  ///
  /// Defaults to [MethodChannelBaseDeviceInfo].
  static BaseDeviceInfoPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [BaseDeviceInfoPlatform] when
  /// they register themselves.
  static set instance(BaseDeviceInfoPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<List?> getPlatformInfo() {
    throw UnimplementedError('getPlatformInfo() has not been implemented.');
  }

  Future<List?> getPlatformCalendar() {
    throw UnimplementedError('getPlatformCalendar() has not been implemented.');
  }
}
